package Day5;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/9  15:42
 **/
public class Test {




    public static void main(String[] args) {



        int[] arra = {1,3,3,23,4,34,43,2};
        for (int i = 0; i <arra.length; i++) {
            System.out.println(   arra[i]   );
        }
        System.out.println(arra[2]);


        Dog dog1 = new Dog("小黑", 2);
        Dog dog2 = new Dog("小白", 2);
        Dog dog3 = new Dog("小红", 2);


        Dog[] dogs = new Dog[3];
        dogs[0] = dog1;
        dogs[1] = dog2;
        dogs[2] = dog3;


        Zookeeper zookeeper = new Zookeeper();
        zookeeper.setDogs(dogs);


        Dog[] dogs1 = zookeeper.getDogs();


        // 1. 普通
        for (int i = 0; i < dogs1.length; i++) {
            Dog dog = dogs1[i];
            System.out.println(dog.getAge());
            System.out.println(dog.getName());
            System.out.println("========");
        }
        // 2. 增强for
        for(Dog d : dogs1){

        }


    }


}
